package com.dudy.authdemo.service;

import com.dudy.authdemo.model.Menu;
import com.dudy.authdemo.vo.MenuVO;
import com.dudy.common.base.BaseService;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @program: auth
 * @author: dudy
 * @create: 2020-12-15 17:34
 * @description:
 **/
public interface MenuService extends BaseService<Menu, MenuVO> {
    /**
     * 根据用户id获取用户拥有的菜单权限
     * @param userName
     * @return
     */
    List<MenuVO> queryCurrentMenu(@NotBlank String userName);
}
